Repository navigation
id(ci): non-blocking benchmark regression reporting vs committed baselines (#1513) - #1589
Conversation
…lines (#1513) F11.8 slice 3 (of #539): a new standalone id-bench workflow runs the four world_bench benchmarks at full size on PRs touching pkgs/id and on pushes to main, then diffs medians against pkgs/id/benches/baseline.txt via .github/scripts/id-bench-compare.sh. Regressions over 20% are named with percentages in the job summary and the bench-output artifact. Non-blocking by design: separate from the required nix flake check gate, the bench step is continue-on-error, and the compare script always exits 0. BASELINES.md documents the reporting and the machine-class caveat.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4f97f0bbf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| continue-on-error: true | ||
| working-directory: pkgs/id | ||
| run: | | ||
| nix develop --command just bench 2>&1 | tee "$GITHUB_WORKSPACE/bench-output.txt" |
There was a problem hiding this comment.
Preserve the benchmark command's exit status
If Nix setup, compilation, or the benchmark harness fails, this pipeline still succeeds whenever tee succeeds. The workflow leaves the shell unspecified, which GitHub documents as bash -e {0}, without pipefail. Consequently, steps.bench.outcome remains success, bypassing the failure-report branch in the comparison step and potentially reporting “No benchmark regressed” from empty or incomplete results. Specify shell: bash or enable pipefail so failures reach the existing warning branch; continue-on-error already preserves the intended non-blocking behavior.
Useful? React with 👍 / 👎.
F11.8 slice 3 of #539 (issue #1513, queue task 1560): non-blocking CI benchmark regression reporting.
What
.github/workflows/id-bench.yml— new standalone workflow. On PRs touchingpkgs/id/**(and pushes to main, plus manual dispatch) it runs the four slice-1 benchmarks at full size vianix develop --command just benchand compares them against the committed slice-2 baselines..github/scripts/id-bench-compare.sh— parses the harness'sbench <name> unit=… median=…lines from both the run output andpkgs/id/benches/baseline.txt, and prints a Markdown report: per-benchmark baseline vs current median, % change, and a summary naming every benchmark more than 20% slower (threshold adjustable viaBENCH_REGRESSION_THRESHOLD_PCT).pkgs/id/benches/BASELINES.md— new section documenting the reporting and its caveats.Non-blocking by design
nix flake checkgate inid-check.yml— it is not part of any required status.continue-on-error; the compare script always exits 0; the report lands in the job summary + thebench-outputartifact.Verification
baseline.txt:pkgs/id/**), which is the end-to-end run.Closes #1513
Need help on this PR? Tag
@codesmith-botwith what you need.